package Method;

/**
 * ClassName:MethodDemo4
 * Package:Method
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/1/11-23:45
 * @Version:v1.0
 */
public class MethodDemo4 {
    //方法调用--带参数
    public static void main(String[] args) {
        getSum(20,25);
    }
    public static void getSum(int num1,int num2){
        int result = num1+num2;
        System.out.println(result);
    }
}
